QT += gui serialbus network websockets
CONFIG += c++11 console
CONFIG -= app_bundle

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
include(QZxing/QZXing.pri)
# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
win32{
    INCLUDEPATH += F:\Project\HH-WuRenCang\Terminal\Includes \
                    F:\Project\HH-WuRenCang\Terminal\CGraph

    # 设置 UTF-8 编码
    QMAKE_CFLAGS += /utf-8
    QMAKE_CXXFLAGS += /utf-8

    # 禁止特定的警告
    QMAKE_CFLAGS += /wd4996 /wd4267 /wd4018
    QMAKE_CXXFLAGS += /wd4996 /wd4267 /wd4018
}
linux{
    INCLUDEPATH += /usr/include/opencv \
                    /usr/include/opencv2

    LIBS += -lopencv_highgui \
            -lopencv_core \
            -lopencv_imgproc \
            -lopencv_imgcodecs \
            -lopencv_video \
            -lopencv_videoio
}


SOURCES += \
        Camera/MvCamera.cpp \
        Can/canopenbus.cpp \
        Can/canthread.cpp \
        Manager/CameraManager.cpp \
        Manager/ServoManager.cpp \
        ServoBase/RmServo.cpp \
        ServoBase/kincoservo.cpp \
        base/ServerMonitor.cpp \
        dispatchcore.cpp \
        main.cpp

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

HEADERS += \
    Camera/MvCamera.h \
    Can/ControlCAN.h \
    Can/canopenbus.h \
    Can/canthread.h \
    Manager/CameraManager.h \
    Manager/ServoManager.h \
    ServoBase/RmServo.h \
    ServoBase/kincoservo.h \
    base/Command.h \
    base/ServerMonitor.h \
    dispatchcore.h \ \
    global.h

DISTFILES += \
    未处理问题

win32: LIBS += -L$$PWD/Libs/ -lMvCameraControl

INCLUDEPATH += $$PWD/Libs
DEPENDPATH += $$PWD/Libs

win32:!win32-g++: PRE_TARGETDEPS += $$PWD/Libs/MvCameraControl.lib
else:win32-g++: PRE_TARGETDEPS += $$PWD/Libs/libMvCameraControl.a

win32: LIBS += -L$$PWD/Libs/ -lControlCAN

INCLUDEPATH += $$PWD/Libs
DEPENDPATH += $$PWD/Libs

win32: LIBS += -L$$PWD/Libs/ -lCGraph

INCLUDEPATH += $$PWD/Libs
DEPENDPATH += $$PWD/Libs

win32:!win32-g++: PRE_TARGETDEPS += $$PWD/Libs/CGraph.lib
else:win32-g++: PRE_TARGETDEPS += $$PWD/Libs/libCGraph.a
